package com.yc.vote.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 投票系统-题目选项表-9
 * </p>
 *
 * @author baomidou
 * @since 2024-04-14
 */
@TableName("tp_items")
public class Items implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号, 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 选项内容
     */
    private String iname;

    /**
     * 题目编号, 关联 tp_vote.id
     */
    private Integer vid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIname() {
        return iname;
    }

    public void setIname(String iname) {
        this.iname = iname;
    }

    public Integer getVid() {
        return vid;
    }

    public void setVid(Integer vid) {
        this.vid = vid;
    }

    @Override
    public String toString() {
        return "Items{" +
        "id=" + id +
        ", iname=" + iname +
        ", vid=" + vid +
        "}";
    }
}
